SPB Git forge

spb/market-atlas

Public
12commits 1branches 0releases
1.1 MBsize
maindefault branch
10 days agolast push
TypeScript 96.7% SQL 1.6% CSS 0.8% JavaScript 0.5%
362 B · 8 lines tsx
Raw Blame History
1import { permanentRedirect } from "next/navigation";23/** Friendly alias: /<class>/<SYMBOL> → canonical instrument page (the API resolves symbols and ids alike). */4export default async function Alias({ params }: { params: Promise<{ symbol: string }> }) {5  const { symbol } = await params;6  permanentRedirect(`/instruments/${encodeURIComponent(symbol)}`);7}8